<template>
  <div class="conterire">
    <!-- <div class="box">
      <horder class="horder">头部</horder>
      <main class="main">内容</main>
    </div> -->
    <router-view></router-view>
    <!-- <footer class="footer">
      <van-tabbar v-model="active">
        <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item to="/ab" icon="search">分类</van-tabbar-item>
        <van-tabbar-item to="/ac" icon="friends-o">购物车</van-tabbar-item>
        <van-tabbar-item to="/ad" icon="setting-o">我的</van-tabbar-item>
      </van-tabbar>
    </footer> -->
    <router-view name="footer"></router-view>
  </div>
</template>
<script setup>
import { ref } from 'vue';
const active = ref(0);
</script>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
}

html,
body,
#app,
.conterire {
  width: 100%;
  height: 100%;
}

.conterire {
  display: flex;
  flex-direction: column;

  .box {
    flex: 1;
    flex-direction: column;
    overflow: auto;
    display: flex;

    .horder {
      height: 3.125rem;
    }

    .main {
      flex: 1;
      overflow: auto;
    }
  }

  .footer {
    height: 3.125rem;
  }

}
</style>
